package Noyau;

import java.util.List;
import java.awt.geom.Point2D;

public abstract class Chemin extends ObjetMetier
{
    protected Point2D origine;
    protected Aeroport aeroport;

    public Point2D getOrigine ()  {
        return this.origine;
    }
    
    @Override
    public Point2D getCenter()
    {
    	// To be overridden for chemins with a size greater than 0. 
    	return this.origine;
    }
    
    public void setOrigine(Point2D value)
    {
    	this.origine = value;
    	this.setChanged();
    	this.notifyObservers();
    }
    
    public void setOrigine(double x, double y)
    {
    	this.setOrigine(new Point2D.Double(x, y));
    }
    
    public Aeroport getAeroport()
    {
    	return this.aeroport;
    }
    
    public void setAeroport(Aeroport value)
    {
    	this.aeroport = value;
    }    
    
    public double getSize()
    {
    	return 0;
    }
    
    @Override
    public double getVisualSize()
    {
    	return this.getSize();
    }

    public abstract void TickHorloge();
    public abstract List<Chemin> getNeighbors();
}
